<?php

///--- web移动端页面 ---///
//移动端登录后才可以访问的页面
Route::group(['prefix' => 'mobile', 'middleware' => 'mobilelogin'], function() {
//web移动端，闲置图书放入书包 提交页面
Route::get('info/{bookid}/new_offer', 'MobileController@newoffer');
//web移动端，闲置图书放入书包 保存
Route::post('saveaddbags', 'MobileController@saveaddbags');
//个人中心
Route::get('myhome', 'MobileController@myhome');
//发布短书评
Route::get('comment/{bookid}/commentpost', 'Mobile\PinglunController@commentpost');
//保存发布的短书评
Route::post('comment/{bookid}/commentpost', 'Mobile\PinglunController@commentpost_save');
//发布长书评
Route::get('reviewslist/{bookid}/reviewslistpost', 'Mobile\PinglunController@reviewslistpost');
//保存发布的长书评
Route::post('reviewslist/{bookid}/reviewslistpost', 'Mobile\PinglunController@reviewslistpost_save');

//我的纸条
Route::get('zhitiao', 'Mobile\Zhitiao\ZhitiaoController@zhitiao');
//纸条内容列表
Route::get('zhitiao/{userid}', 'Mobile\Zhitiao\ZhitiaoController@msgs');
//保存发送的纸条信息
Route::post('zhitiao/{userid}', 'Mobile\Zhitiao\ZhitiaoController@save_msgs');
//删除对应的纸条
Route::get('zhitiao/delmsg/{id}', 'Mobile\Zhitiao\ZhitiaoController@delmsg');
//删除对话的全部纸条
Route::get('zhitiao/delallmsg/{userid}', 'Mobile\Zhitiao\ZhitiaoController@delallmsg');
});


// web移动端首页
Route::get('mobile', 'MobileController@index'); 
// 书库
Route::get('mobile/books', 'MobileController@books'); 
// 书城
Route::get('mobile/shop', 'MobileController@shop'); 
// 图书信息
Route::get('mobile/info/{bookid}', 'MobileController@info'); 
// 会员转让一本书的列表
Route::get('mobile/{bookid}/countlist', 'MobileController@countlist');
// 转让图书的信息
Route::get('mobile/shopinfo/{bagid}', 'MobileController@shopinfo');
// 书单
Route::get('mobile/shudan', 'MobileController@shudan');  
// 书单信息页
Route::get('mobile/shudaninfo/{id}', 'MobileController@shudaninfo');  
// 长书评
Route::get('mobile/shuping', 'MobileController@shuping'); 
//长书评内容
Route::get('mobile/shupinginfo/{id}', 'MobileController@shupinginfo');
//登录页面
Route::get('mobile/login', function () {
    return view('mobile.login');
});
//登录处理
Route::post('mobile/login', 'MobileController@login');
//注册
Route::get('mobile/usreg', function () {
    return view('mobile.usreg');
});
//保存注册信息
Route::post('mobile/usreg', 'MobileController@saveusreg');
//搜索书库
Route::get('mobile/search', 'MobileController@search');
//搜索书城
Route::get('mobile/shopsearch', 'MobileController@shopsearch');
//会员主页
Route::get('mobile/uhome/{uid}', 'MobileController@uhome');
//正在读的书，想读的书，读过的书
Route::get('mobile/readstate/{read_state}/{uid}', 'MobileController@readstate');
//用户出售的书籍
Route::get('mobile/ushop/{uid}', 'MobileController@ushop'); 
Route::get('mobile/ulist', 'MobileController@ulist');
//出版社列表
Route::get('mobile/chubanshelist', 'MobileController@chubanshelist');
//显示全部短评列表
Route::get('mobile/comment/{bookid}', 'Mobile\PinglunController@commentlist');
//显示全部长评列表
Route::get('mobile/reviewslist/{bookid}', 'Mobile\PinglunController@reviewslist');
///--- web移动端页面end ---///
